<template>
  <div class="goback" @click="goTop">
     <span class="iconfont"> &#xe66b;</span>
  </div>
</template>

<script>
import  hub from '@/assets/js/hub.js'
// import '@/hub.js'
export default {
    methods:{
        goTop(){
            hub.$emit('goTop',true)
        }
    }
}
</script>

<style lang='stylus' scoped>
// @import '~@/assets/css/varibles.styl' 
// @import '~@/assets/css/ellipsis.styl'
.goback
    position fixed
    width .4rem
    height .4rem
    border-radius 50%
    right .3rem
    bottom 1rem
    span 
        font-size .4rem
        color #00bcd4
</style>